<template>
  <div class="module-box" :class="boxCls">
    <div class="module-wrapper">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    boxCls: {
      type: String,
      default: 'box1'
    }
  }
}
</script>

<style scoped lang="scss">
.module-box {
  position: relative;
  padding: 20px  0;
  &.box1 {
    width: 370px;
    height: 251px;
    background: url("./images/box1.png") no-repeat center;
    background-size: 100% 100%;
  }
  &.box2 {
    width: 370px;
    height: 321px;
    background: url("./images/box2.png") no-repeat center;
    background-size: 100% 100%;
  }
  &.box3 {
    width: 370px;
    height: 181px;
    background: url("./images/box3.png") no-repeat center;
    background-size: 100% 100%;
  }
  &.box4{
    width: 100%;
    height: 100%;
    padding: 0 ;
  }
  .module-wrapper{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
  }
}
</style>
